import request from '@/utils/request'

// 查询专家资料列表
export function listExperts(query) {
  return request({
    url: '/system/experts/list',
    method: 'get',
    params: query
  })
}

// 查询专家资料详细
export function getExperts(expertId) {
  return request({
    url: '/system/experts/' + expertId,
    method: 'get'
  })
}

// 新增专家资料
export function addExperts(data) {
  return request({
    url: '/system/experts',
    method: 'post',
    data: data
  })
}

// 修改专家资料
export function updateExperts(data) {
  return request({
    url: '/system/experts',
    method: 'put',
    data: data
  })
}

// 删除专家资料
export function delExperts(expertId) {
  return request({
    url: '/system/experts/' + expertId,
    method: 'delete'
  })
}
